package com.faye.mcp.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class WeatherService {

    @Tool(name = "getWeather", description = "Get weather information by city name")
    public String getWeather(@ToolParam(description = "City name") String cityName) {
        // Implementation
        log.info("getWeather: {}", cityName);
        return "Sunny";
    }
}
